package com.zephyr.vchcenter.pbcFile.preTreat;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;

import com.zephyr.vchcenter.pbcFile.commons.Constance;
import com.zephyr.vchcenter.pbcFile.configBean.Dict;
import com.zephyr.vchcenter.pbcFile.util.FileParserUtil;

/**
 * @author zhaoyunxiao
 * 武汉文件预处理器
 */
public class WuhanPreTreator implements BasePreTreator {
	private static final Logger log=Logger.getLogger(WuhanPreTreator.class);
	public List<String> preTreat(Dict dict) {
		log.debug("enter:CommonsPreTreator:preTreat");
		File file=dict.getFile();
		List<String> list=FileParserUtil.readFileByLine(file);
		List<String> returnValue=FileParserUtil.getRequestLines(list, Constance.WUHAN_HEADER_LINENUM);//new ArrayList<String>();
		log.debug(""+returnValue.size());
		return returnValue;
	}

}
